package com.mx.contror;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mx.entity.Salary;
import com.mx.service.SalaryService;

@Controller
public class SalaryController {
  @Autowired
  private SalaryService  salaryService;
  @RequestMapping("/salarycontroller/getALLValue")
  @ResponseBody
  public List<Salary> getALLValue(){
	 return  salaryService.getAllValue();
  }
  
  @RequestMapping("/salarycontroller/getSalaryByYear")
  @ResponseBody
  public List<Object> getSalaryByYear(){
	 return  salaryService.getSalaryByYear();
  }
}
